<h1>Listing invitations</h1>

<table>
  <tr>
    <th>Talk</th>
    <th>Recipient email</th>
    <th>Token</th>
  </tr>

<% @invitations.each do |invitation| %>
  <tr>
    <td><%=h invitation.talk_id %></td>
    <td><%=h invitation.recipient_email %></td>
    <td><%=h invitation.token %></td>
    <td><%= link_to 'Show', invitation %></td>
    <td><%= link_to 'Edit', edit_invitation_path(invitation) %></td>
    <td><%= link_to 'Destroy', invitation, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New invitation', new_invitation_path %>